package com.ysy.logistics.entities.stock;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.ysy.common.entities.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/30 22:57
 **/
@Data
@Schema(name = "StoreGoods", description = "商品库存表")
@TableName(value = "store_goods",autoResultMap = true)
@Accessors(chain = true)
public class StoreGoods extends BaseEntity {

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "商品id")
    @TableField(value = "goods_id")
    private String goodsId;

    @Schema(description = "商品类型")
    @TableField(value = "goods_type")
    private String goodsType;

    @Schema(description = "商品规格Id")
    @TableField(value = "goods_capacity_id")
    private String goodsCapacityId;


    @Schema(description = "进价")
    @TableField(value = "price")
    private Integer price;

    @Schema(description = "计量单位")
    @TableField(value = "price_unit")
    private String priceUnit;

    @Schema(description = "售价")
    @TableField(value = "sale_price")
    private Integer salePrice;

    @Schema(description = "仓库id")
    @TableField(value = "store_house_id")
    private String storeHouseId;

    @Schema(description = "仓库名称")
    @TableField(value = "store_house_name")
    private String storeHouseName;

    @Schema(description = "库存")
    @TableField(value = "store_num")
    private Integer storeNum;

    @Schema(description = "备注")
    @TableField(value = "remark")
    private String remark;

}
